<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 选项卡 &amp; 面板</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">
        th {
             text-align: center;
         }

        td {
            text-align: center;
        }
        .wrap{
            width: 150px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        }
    </style>
</head>

<body class="gray-bg">

<div class="row">
    <div class="col-sm-12">
        <div class="tabs-container">
            <ul class="nav nav-tabs">
                <li id="record_1" class="active" ><a  href="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist?type=1&rid=<{$rid}>" > 全部工单</a>
                </li>
                <li id="record_2" class=""><a  href="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist?type=2&rid=<{$rid}>" >我受理中的工单<span class="label label-warning pull-right"><{$num}></span></a>
                </li>
                <li id="record_3" class=""><a  href="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist?type=3&rid=<{$rid}>" >我提交的工单</a>
                </li>
                <li id="record_4" class=""><a href="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist?type=4&rid=<{$rid}>"  >我完成的工单</a>
                </li>
                <li id="record_5" class=""><a  href="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist?type=5&rid=<{$rid}>"  >组内未处理工单</a>
                </li>
                </li>
            </ul>
            <div class="tab-content">
                <div  class="tab-pane active">
                    <div class="panel-body">
                        <div class="ibox-content">
                            <div class="col-sm-12" style="margin-bottom: 1rem">
                                <form role="form" action="<{$SRVER_NAME}>/admin.php/WorkOrder/workorderlist" method="get">
                                    <div class="form-group" style="display: flex">
                                        <input type="hidden" name="rid" value="<{$rid}>">
                                        <input type="hidden" name="type" value="<{$type}>">
                                        <input type="text" id="content" placeholder="" name="content" class="form-control" style="width: 90%" value="<{$search}>"> &nbsp; &nbsp;
                                        <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit" id="search" style=" width: 80px;height: 34px;margin-top: 0px;">搜索
                                        </button>
                                    </div>

                                </form>
                            </div>
                            <br />
                            <table class="table table-striped table-bordered table-hover" id="sample-table">
                                <thead>
                                <tr>
                                    <!--<th width="100px">用户名</th>-->
                                    <!--<th width="100px">手机号</th>-->
                                    <th width="150px">派发部门</th>
                                    <th width="100px">派发人</th>
                                    <th width="200px">标题</th>
                                    <!--<th width="200px">内容</th>-->
                                    <th width="150px">受理部门</th>
                                    <th width="100px">受理人</th>
                                    <th width="100px">等级</th>
                                    <th width="100px">状态</th>
                                    <th width="200px">创建时间</th>
                                    <th width="200px">更新时间</th>
                                    <th width="200px">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="data" id="vo">
                                    <tr id="tr_<{$vo.id}>">
                                        <!--<td><{$vo.user_name}></td>-->
                                        <!--<td><{$vo.user_phone}></td>-->
                                        <td><{$vo.apart_f}></td>
                                        <td><{$vo.publish_name}></td>
                                        <td class="cont_omit"><{$vo.title}></td>
                                        <!--<td class="wrap" colspan="1" ><{$vo.content}></td>-->
                                        <td><{$vo.apart_s}></td>
                                        <td><{$vo.accept_name}></td>
                                        <td><{$vo.level}></td>
                                        <td><{$vo.status}></td>
                                        <td><{$vo.ctime}></td>
                                        <td><{$vo.upd_time}></td>
                                        <td>
                                            <volist name="roles" id="vr">
                                                <if condition="$vr['name'] eq '查看详情'">
                                                    <a href="details.html?type=<{$type}>&id=<{$vo.id}>&page=<{$page}>&rid=<{$rid}>"  class="btn btn-success btn-rounded">查看详情</a>
                                                </if>
                                            </volist>

                                        </td>


                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                            <div class="dataTables_paginate paging_simple_numbers" style="text-align: end;">
                                <ul class="pagination">
                                    <if condition="$tol gt 10">
                                        <{$fpage}>
                                    </if>

                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>


</div>

<!-- 全局js -->
<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<!-- 自定义js -->
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/js/plugins/layer/layer.min.js"></script>
<script>
    $(function () {
        var type="<{$type}>";
        $("#record_1").removeClass('active');
        if(type==1){
            $("#record_1").addClass('active');
        }else    if(type==2){
            $("#record_2").addClass('active');

        }else   if(type==3){
            $("#record_3").addClass('active');
        }else   if(type==4){
            $("#record_4").addClass('active');
        }else   if(type==5){
            $("#record_5").addClass('active');
        }
    });
</script>
</body>

</html>
